package top.hmtools.services;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;

import top.hmtools.GMContext;
import top.hmtools.daos.DBConnectInfoDao;
import top.hmtools.daos.MapperXmlSqlPartGroupDao;
import top.hmtools.daos.MapperXmlSqlPartTempletDao;
import top.hmtools.daos.MapperXmlFileTempletDao;

/**
 * 服务层基础类
 * @author HyboJ
 *
 */
public class BaseService {

	protected final Logger logger = LoggerFactory.getLogger(this.getClass());
	
	protected ApplicationContext applicationContext = GMContext.applicationContext;
	
	/**
	 * 操作数据库链接信息表的dao
	 */
	@Autowired
	protected DBConnectInfoDao gmDbConnectInfoDao;
	
	/**
	 * 操作mapper xml 片断分组信息表的dao
	 */
	@Autowired
	protected MapperXmlSqlPartGroupDao mapperXmlSqlPartGroupDao;
	
	/**
	 * 操作mapper xml 片断信息表的dao
	 */
	@Autowired
	protected MapperXmlSqlPartTempletDao mapperXmlSqlPartTempletDao;
	
	/**
	 * 操作 mapper xml 模板信息表的 dao接口
	 */
	@Autowired
	protected MapperXmlFileTempletDao mapperXmlFileTempletDao;
}
